<!DOCTYPE html>
<html lang="en" ng-app="demo">
    <head>
        <meta charset="UTF-8">
        <title>LazyLoad Module Demo</title>
        <script type="text/javascript" src="node_modules/angular/angular.js"></script>
        <script type="text/javascript" src="node_modules/angular-ui-router/release/angular-ui-router.js"></script>
        <script type="text/javascript" src="node_modules/oclazyload/dist/ocLazyLoad.js"></script>
        <script type="text/javascript" src="index.js"></script>

        <style>
            div[ui-view] {
                position: relative;
                width: 90%;
                margin: 0 5%;
            }
        </style>
    </head>
    <body ng-controller="AppCtrl as ctrl">
        <button ui-sref="home">Home</button>
        <button ui-sref="store">Store</button>
        <button ui-sref="sys" ng-click="clicked = true;">Sys</button>
        <button ui-sref="sys.menu" ng-disabled="!clicked" title="点击 Sys 按钮后此路由才可见">Sys.Menu</button>
        <button ui-sref="sys.user" ng-disabled="!clicked" title="点击 Sys 按钮后此路由才可见">Sys.User</button>
        <hr>
        <div ui-view></div>
    </body>
</html>